package com.zp.business.entity.lab.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 检验申请子表业务对象
 *
 * @author zhang peng
 * @ date 2024-03-05
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class LabItemBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = {EditGroup.class})
    private String id;

    /**
     * 检验申请主表ID
     */
    @NotBlank(message = "检验申请主表ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String applyId;

    /**
     * 诊疗项目ID
     */
    @NotBlank(message = "诊疗项目ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String clinicItemId;

    /**
     * 检验项目名称
     */
    @NotBlank(message = "检验项目名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String itemName;

    /**
     * 检验类别
     */
    private String itemType;

    /**
     * 检验项目code
     */
    @NotBlank(message = "检验项目code不能为空", groups = {AddGroup.class, EditGroup.class})
    private String itemCode;

    /**
     * 费用
     */
    @NotNull(message = "费用不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal costs;

    /**
     * 机构ID
     */
    @NotBlank(message = "机构ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String orgId;

    /**
     * 备注信息
     */
    private String remarks;

    /**
     * 真实开单时间
     */
    private Date realDate;

    /**
     * 检验管
     */
    private String labTube;

    /**
     * 标本
     */
    private String specimen;

    private String delFlag;

    private Integer num;
    private BigDecimal price;

    /**
     * 交费标志
     */
    private String chargeFlag;

    /**
     * 确认标志
     */
    private String confirmFlag;
}
